import socialHttp from '@/social/http'
import ProviderUserVO from '@/model/login/ProviderUserVO'
import UserVO from '@/model/user/UserVO'

export default class LoginAPI {
  static login () {
    return socialHttp.post('user/login')
  }

  static mockLogin () {
    return socialHttp.post('social/mockSocialLogin')
  }

  static mockBindPhone () {
    return socialHttp.post<UserVO>('social/mockSocialBindPhone')
  }

  static providerLoginAPI (loginData: ProviderUserVO) {
    return socialHttp.post('user/providerLogin', loginData)
  }

  //微信绑定手机号使用
  static bindPhoneNumAPI (loginData: ProviderUserVO) {
    return socialHttp.post<UserVO>('user/bindPhoneNumByWx', loginData)
  }
}
